package cn.itcast.babasport.service.upload;

import org.springframework.stereotype.Service;

import cn.itcast.babasport.pojo.product.Brand;
import cn.itcast.babasport.utils.fast.FastDFSUtils;

@Service("uploadService")
public class UploadServiceImpl implements UploadService {

	/**
	 * 附件上传到FastDFS
	 * @throws Exception 
	 */
	@Override
	public String uploadPicToFastDFS(byte[] file_buff, String filename) throws Exception {
		String path = FastDFSUtils.UploadPicToFastDFS(file_buff, filename);
		return path;
	}


}
